/*
通话套餐类
* */
public class cnSuit implements connectInter{
    double callDuration = 500.00;//默认初始值为500.00分钟
    int massageNum = 300;//默认初始值为300条
    double consume = 10.00;//默认初始值为10元

    public cnSuit() {
    }

    public cnSuit(double callDuration, int massageNum, double consume) {
        this.callDuration = callDuration;
        this.massageNum = massageNum;
        this.consume = consume;
    }

    public double getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(double callDuration) {
        this.callDuration = callDuration;
    }

    public int getMassageNum() {
        return massageNum;
    }

    public void setMassageNum(int massageNum) {
        this.massageNum = massageNum;
    }

    public double getConsume() {
        return consume;
    }

    public void setConsume(double consume) {
        this.consume = consume;
    }

    public void show(){
        System.out.println("本通话套餐的通话时长为："+ callDuration+"，短信条数："+massageNum+"，每月资费："+consume);
    }
    @Override
    public void service(double callDuration, sdCardEnum type) {
        System.out.println("这是通话套餐类里的实现通话服务接口方法");

    }
}
